package lv.dysnomia.portal.web

import javax.servlet.http.{ HttpServlet, HttpServletRequest, HttpServletResponse }

class Locale extends HttpServlet {
  override def doGet(request: HttpServletRequest, response: HttpServletResponse): Unit = {
    request.getSession().setAttribute("locale", request.getParameter("locale"))
    response.sendRedirect(request.getParameter("url"))
  }
}